package com.apex.config;

import org.springframework.context.annotation.Configuration;
import org.springframework.web.servlet.config.annotation.ViewControllerRegistry;
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
@Configuration
public class MyConfig implements WebMvcConfigurer {

    @Override
    public void addViewControllers(ViewControllerRegistry registry) {
        registry.addViewController("/").setViewName("BackEnd/index");
        registry.addViewController("/login").setViewName("BackEnd/login");
        registry.addViewController("/main").setViewName("BackEnd/index");
        registry.addViewController("/client/add-product").setViewName("BackEnd/add-product");
        registry.addViewController("/client/update-product").setViewName("BackEnd/update-product");
        registry.addViewController("/client/orders-list").setViewName("BackEnd/orders-list");
        registry.addViewController("/client/orders-details").setViewName("BackEnd/orders-details");
    }
}
